package com.beaven.imclient.data;

import com.beaven.model.model.db.Category;

/**
 * author: Beaven
 * time: 2017/5/31 10:25
 */

public class CategorySelect {
  private Category category;
  private boolean isSelected;

  public Category getCategory() {
    return category;
  }

  public void setCategory(Category category) {
    this.category = category;
  }

  public boolean isSelected() {
    return isSelected;
  }

  public void setSelected(boolean selected) {
    isSelected = selected;
  }

  public static CategorySelect build(Category category) {
    return build(category, false);
  }

  public static CategorySelect build(Category category, boolean isSelected) {
    CategorySelect categorySelect = new CategorySelect();
    categorySelect.setCategory(category);
    categorySelect.setSelected(isSelected);
    return categorySelect;
  }
}
